﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Clipper.Converters
{
    /// <summary>
    /// 保养状态
    /// </summary>
    public class MaintainDaysConverter:AbstractConverters
    {
        public override object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
           
            int days = int.Parse(value.ToString());

            if (days <= 10)
            {
                return "/Clipper;component/Skin/Icon/保养状态.png";
            }
            else if (days > 10 && days <= 30)
            {
                return "/Clipper;component/Skin/Icon/保养状态.png";
            }
            else
            {
                return "/Clipper;component/Skin/Icon/保养状态.png";
            }
        }
    }
}